package by.demchenko.sample.services;

import by.demchenko.sample.datamodel.Faculty;

import javax.transaction.Transactional;
import java.util.List;

public interface FacultyService {

    Faculty get(Integer id);

    @Transactional
    void save(Faculty faculty);

    @Transactional
    void saveOrUpdate(Faculty faculty);

    @Transactional
    void delete(Integer id);

    int getCount();

    List<Faculty> getAll();
}